﻿<phone:PhoneApplicationPage
    x:Class="OnlineMovies.Views.UserUpload"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
     xmlns:inputtoolkit="clr-namespace:MarkHeath.StarRating;assembly=MarkHeath.StarRating"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">
    <phone:PhoneApplicationPage.Resources>
        <DataTemplate  x:Key="tblkcat">
            <TextBlock Foreground="White"  FontSize="40" LineHeight="60" FontFamily="Calibri" FontWeight="Normal" Text="{Binding}" Loaded="TextBlock_Loaded_1"></TextBlock>
        </DataTemplate>
    </phone:PhoneApplicationPage.Resources>
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="10,17,0,28" Orientation="Horizontal">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseEnter"/>
            <TextBlock x:Name="tblkVideosTitle" Text=""  Style="{StaticResource DetailPagePivotTitle}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
              
            </Grid.RowDefinitions>
            <StackPanel Orientation="Vertical" Grid.Row="0">
                <StackPanel Orientation="Horizontal">
                <TextBlock x:Name="type" Text="Name" Margin="15,0,0,0" Foreground="White"></TextBlock>
                    <TextBlock x:Name="valid" Text="Required" FontSize="16" Foreground="Red" Margin="10,4,0,0"  Visibility="Collapsed"></TextBlock>
                </StackPanel>
                    <TextBox x:Name="tblkshowname" Width="500" Loaded="tblkshowname_Loaded_1" LostFocus="tblkshowname_LostFocus_1" HorizontalAlignment="Left"></TextBox>
            </StackPanel>
            <StackPanel Orientation="Vertical" Grid.Row="1">
                <StackPanel x:Name="onl" Orientation="Horizontal">
                    <TextBlock  Text="Description" Foreground="White" Margin="15,10,0,0"></TextBlock>
                    <Image x:Name="onlinedescimg" Source="/Images/online.png" Margin="20,0,0,0" Height="48" Width="48" MouseLeftButtonDown="onlinedescimg_MouseLeftButtonDown_1"></Image>
                    <Image x:Name="edit"  Source="/Images/PlayerImages/edit.png" Margin="25,0,0,0" Stretch="Fill" Height="48" Width="48" MouseLeftButtonDown="edit_MouseLeftButtonDown_1" ></Image>
                    <TextBlock x:Name="txtlength" Visibility="Visible" Margin="100,30,0,0" HorizontalAlignment="Right" Foreground="White" FontSize="20"></TextBlock>
                </StackPanel>
                <StackPanel Orientation="Vertical">
                <TextBox x:Name="tblkdes"  TextChanged="tblkdes_TextChanged_1"  Width="500" ScrollViewer.VerticalScrollBarVisibility="Auto" Height="100" TextWrapping="Wrap" HorizontalAlignment="Left" ></TextBox>
                  <TextBlock x:Name="txtlimit" Visibility="Collapsed" Margin="30,-5,0,0" Text="max text limit 150 characters" Foreground="Red" FontSize="20"></TextBlock>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="2">
                <TextBlock  Text="Rating" Margin="15,10,0,0" Foreground="White"></TextBlock>
                <inputtoolkit:StarRatingControl x:Name="rating" Rating="10" HorizontalAlignment="Left" Margin="15,10,0,0" NumberOfStars="5" Height="25" Width="139" MouseLeftButtonDown="rating_MouseLeftButtonDown_1" ></inputtoolkit:StarRatingControl>
            </StackPanel>
            <StackPanel Grid.Row="3" Orientation="Horizontal">
                <TextBlock x:Name="genr" Text="Genre" Margin="15,20,0,0" Foreground="White"></TextBlock>
                <toolkit:ListPicker x:Name="lpiccategory" Margin="15,10,0,0"  HorizontalAlignment="Left"  Width="369" FullModeItemTemplate="{StaticResource tblkcat}"  FullModeHeader="Choose Category" >
                  
                </toolkit:ListPicker>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="4" Margin="15,10,0,0">
                
                <StackPanel Orientation="Vertical">
                    <TextBlock x:Name="localtblk" Foreground="White" Text="Image From Local"></TextBlock>
                    <Image x:Name="userlocalimg"  Visibility="Visible" Source="/Images/fromlocal.png" Height="190" Width="130" HorizontalAlignment="Left" Margin="10,5,0,0" MouseLeftButtonDown="userlocalimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="80,0,0,0">
                    <TextBlock x:Name="onlinetblk" Foreground="White" Text="Image From Online"></TextBlock>
                    <Image x:Name="useronlineimg"  Visibility="Visible" Source="/Images/fromonline.png" Height="190" Width="130" HorizontalAlignment="Left" Margin="10,5,0,0" MouseLeftButtonDown="useronlineimg_MouseLeftButtonDown_1"></Image>
                </StackPanel>
            </StackPanel>
          
        </Grid>
        <StackPanel Name="adstackpl" Grid.Row="2" Orientation="Vertical"  Margin="0,3,2,0">
        </StackPanel>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>

        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">

            <shell:ApplicationBarIconButton x:Name="btnsave" IconUri="/Images/PlayerImages/save.png" Text="Save" Click="btnsave_Click_1"/>

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>